//package com.wt.vhr.controller;
//
//import org.javaboy.vhr.config.VerificationCode;
//import org.javaboy.vhr.model.RespBean;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import javax.servlet.http.HttpSession;
//import java.awt.image.BufferedImage;
//import java.io.IOException;
//
///**
// * @作者 江南一点雨
// * @公众号 江南一点雨
// * @微信号 a_java_boy
// * @GitHub https://github.com/lenve
// * @博客 http://wangsong.blog.csdn.net
// * @网站 http://www.javaboy.org
// * @时间 2019-09-21 21:15
// */
//@RestController
//public class LoginController_origin {
//    @GetMapping("/login")
//    public RespBean login() {
//        return RespBean.error("尚未登录，请登录!");
//    }
//
//    @GetMapping("/verifyCode")
//    public void verifyCode(HttpServletRequest request, HttpServletResponse resp) throws IOException {
//        VerificationCode code = new VerificationCode();
//        BufferedImage image = code.getImage();
//        String text = code.getText();
//        HttpSession session = request.getSession(true);
//        session.setAttribute("verify_code", text);
//        VerificationCode.output(image,resp.getOutputStream());
//    }
//}
